import { createSSRApp } from "vue";
import App from "./App.vue";
import i18n from './utils/i18n';

// 在开发环境下引入 mock 服务
if (process.env.NODE_ENV === 'development') {
  import('./mock');
}

export function createApp() {
  const app = createSSRApp(App);
  app.use(i18n);
  return {
    app,
  };
}
